package com.tudouji.project.customer.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tudouji.framework.aspectj.lang.annotation.Excel;
import com.tudouji.framework.web.domain.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 账户余额流水对象 cashflow
 *
 * @author tudouji
 * @date 2022-05-19
 */
@Data
public class Cashflow extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private Long id;
    /** 主键 */
    private String guid;

    /** 客户id */
    @Excel(name = "客户id")
    private String customerid;

    /** 关联表名称 */
    @Excel(name = "关联表名称")
    private String linkedTable;

    /** 关联交易id */
    @Excel(name = "关联交易id")
    private String linkid;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal amount;

    /** 预付款余额(交易后金额) */
    @Excel(name = "预付款余额(交易后金额)")
    private BigDecimal prebalance;

    /** 1-充值,2-条码,3-支付货款 */
    @Excel(name = "1-充值,2-条码,3-支付货款")
    private Integer type;

    /** 操作人id */
    @Excel(name = "操作人id")
    private String operatorid;

    /** 操作人 */
    @Excel(name = "操作人")
    private String operator;

    /** 最后更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastupdate;

    /** 业务编号 */
    @Excel(name = "业务编号")
    private String code;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createtime;
    private Date minCreatetime;
}
